﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FormItemFilter.ascx.cs" Inherits="Apollo.Website.Controls_Edit_FormItemFilter" %>

<script type="text/javascript">
    $(document).ready(function () {
        var flt = new apolloFilter(document.getElementById("filter_container"), {
            filter: <%= this.Filter %>,
            columns: [<%= this.Columns %>],
            entityID: <%= this.EntityID.ToString() %>,
            onchange: function () {
                document.getElementById('<%= this.HiddenFieldFilter.ClientID %>').value = $.toJSON(this.filter);
                $("#filter_definition").text($.toJSON(this.filter));
                return false;
            }
        });
    });
</script>

<asp:Label ID="LabelPropertyName" runat="server" Text="Label" CssClass="property_name"></asp:Label><br />
<div id="filter_container"></div>
<div id="filter_definition"></div>
<asp:HiddenField ID="HiddenFieldFilter" runat="server" />
